﻿using DAL;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BLL
{
    public class WaterReserveBLL
    {
        WaterReserveDAL wrd = new WaterReserveDAL();
        public int AddWaterReserveRecords(string rfkh, string stime, string etime, string wz, string code, string state,string orderId)
        {
            return wrd.AddWaterReserveRecords(rfkh,  stime,  etime,  wz,  code,  state, orderId);
        }

        public int AddWaterReserveOffRecords(string rfkh, string stime, string etime, string jh, string code, string state, string orderId)
        {
            return wrd.AddWaterReserveOffRecords(rfkh, stime, etime, jh, code, state, orderId);
        }

        public DataSet getReservatedCode(string openids, string startTime, string endTime)
        {
            return wrd.GetWaterReserveRecords(openids,  startTime,  endTime);
        }

        public DataTable getJh(string wz)
        {
            return wrd.getJh(wz);
        }

        public int CancelWaterReserveRecords(string rfkh, string endTime, string wz, string reservedCode)
        {
            return wrd.CancelWaterReserveRecords(rfkh, endTime, wz,  reservedCode );
        }

        public DataTable isExistReservedCode(string wz,string reservedCode)
        {
            return wrd.isExistReservedCode(wz, reservedCode);
        }
    }
}
